working on valpy.py