Added Python 3 compatibility; Thank you GVIDO for PYTHON3!

Both examples and tests are works well.