code: def format_js2py(cls, datetime_format):
          
          for js_format, py_format in cls.format_map:
              datetime_format = datetime_format.replace(js_format, py_format)
          return datetime_format
docs: Convert moment datetime format to python datetime format.