A simple RSA implementation in Python