Added Python3 support