PEP8 cleanup

This PR re-formats the code according to PEP8 rules and fixes some other styling issues - following niryariv/opentaba-server#45