Fix bug related to returning inside of generator.
Merge pull request #131 from globaleaks/fix/dont_return_in_generator

Fix bug related to returning inside of generator.
bump to 3.1.4