python generators & decorators

hi i added generators and decorators in python. Not sure if you agree with the code but I believe they are too cool to be omitted