Adding valid.py to repo