first pass using pycharm, fixed issue with post method, ad pep-8