Working with NPR Api using Python