fixed pwru160c00.py with functions!!