pyqi fills in kwargs at this point to have the default value if the user didn't supply a value, so you can just access kwargs without worrying about a KeyError or setting a default here.