Long integer is really excellent in Python. Encoding RSA 2048bits in a simple and elegant way in Python is almost trivial. How about the nontrivial decoding part ?