[python] Is there a way to pass optional parameters to a function?