more pythonic checking, from module imports