Fix Python3 bug

Also, the extension was being built incorrectly, thanks for
pointing that out Python 3