from py.test import raises import py import sys import inspect