Creating Lambda Functions With Python