Python implementation of RNCryptor