undaq.py script