[python] do not generate "if arg is None: arg = None" for function arguments