How To Implement An Api In Python