Lazy evaluation for python