code: def timestamp_to_datetime(response):
      "Converts a unix timestamp to a Python datetime object"
      if not response:
          return None
      try:
          response = int(response)
      except ValueError:
          return None
      return datetime.datetime.fromtimestamp(responsef timestamp_to_datetime(response):
      "Converts a unix timestamp to a Python datetime object"
      if not response:
          return None
      try:
          response = int(response)
      except ValueError:
          return None
      return datetime.datetime.fromtimestamp(response)
docs: Converts a unix timestamp to a Python datetime object