test lambda function locally python