Using Lambda Function To Call An Api From Python