Added Python3 support and testing