crypto stuff in python