updated maintest.py