api monetization python