Fix building of pyamgcl for python3