working with NPR Api using Python