Playwright Python Lambda Function