Building Lambda Functions with Python