code: def prepare_arg(value):
      
      if value is None:
          return value
      elif isinstance(value, (list, dict)) or hasattr(value, 'to_python'):
          return json.dumps(_normalize(value))
      elif isinstance(value, datetime.timedelta):
          now = datetime.datetime.now()
          return int((now + value).timestamp())
      elif isinstance(value, datetime.datetime):
          return round(value.timestamp())
      elif isinstance(value, LazyProxy):
          return str(value)
      return value
docs: Stringify dicts/lists and convert datetime/timedelta to unix-time
  
      :param value:
      :return: