finished prot.py