fixed issue where triggers are being inappropriately enabled

this was already set above

also pep8 says leave a blank line before the start of a function