pep8ify and refactor lexactions.py and AutoAccept