Modified secure.py to follow PEP8