added a way to parse input arguments in optima.py + argument to wait for graphs