GPS calculations fixes & pep8