changed shebang line as python2 does not work on MacOS