Java and Python implementations of HashCash