Python port of https://github.com/paypal/genio, with a twist