Bugfixes, changed params to data to allow non-get methods to work again correctly. Removed a syntax error on line 534
Huge refactoring and PEP8 fixes. WARNING: not compatible with old version, but easy to migrate