Don’t use the clean_pdb.py script in the tutorials/demos directory. Use the one at tools/protein_tools/scripts/clean_pdb.py — That said, I’m not sure if it’s been updated to work with Python3. You may need to use Python2 instead, or make the necessary (hopefully small) changes to the file to make it compatible.