modified to use python2 explicitly