fix base_handlers.py pep8 so travis passes