npr is the python api solution