Using Python As An Api Call