clone from https://bitbucket.org/Pidgeot/python-lnp