code: def function_arguments(func):
      
      if getattr(inspect, 'signature', None) is None:
          return list(inspect.getargspec(func).args)
      else:
          return list(inspect.signature(func).parameters.keys())
docs: This returns a list of all arguments
      :param func: callable object
      :return: list of str of the arguments for the function