However you do it, the function that does the conversion is going to have to know about the names of the default arguments. You may be able to shorten it a bit by making fix_args a regular function (instead of a method) and not using named parameters for it: