pep8; remove unnecessary atexit; bubble lock relase exceptions