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