Updating cipher.py