Added file lrn_gen.py to understand python gnenerators