Making the pytest features usable externally