Support python3

Related to issue #5.