Refactoring and PEP8

Fully pythonic and PEP8 compliance(except camelcase in method names). Tested POST, PUT, GET, DELETE. Look at module docstring for example usage.