Made the README examples work with Python compilers / fixed syntax.

The current version doesn't work out of the box with Python compilers due to wrong comment marks (// instead of #). Also, there were some brackets missing preventing it from working right away.