change inout.py with global variables