monitor script added, for python 2.7