use py.test import mechanism instead of imp module