How to encrypt and decrypt a file with Python?