add pytest dependency for python2.7

otherwise pytest import fails