A pure Python implementation of the AMP protocol