Secret Key should be loaded from the environ of the deployment

Also, removed the bool casting in the is statement as it is unpythonic. Feel free to ignore that style change.