Made the README examples work with Python compilers / fixed syntax.
Merge pull request #7 from SebastianAigner/master

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