oh so dirty hack lol btw this could be done in one line of code deploy id args f func conde co varnames index  deploy id but i think that it will be even cleaner if you just make this kwargs setdefault  deploy id default deployment id f  args kwargs 