Generators, optimizations, profiling

python

#1