https://pypi.python.org/pypi/simple-crypt
for python 2 it is still a good pycrypto example - the code is pretty simple.