changed http_methods_available into a list instead of a dict + PEP8 formatting