fix depreciation error
fix timezone and some pep8 stuff