Pep8 compliance and changes to shutter control