make examples compatible with python3
Merge pull request #62 from stonebig/py3_examples

make all examples compatible with python3