this idiom can be easily extended into more sophisticated layout guessing, also it solved a pep8 issue of unused imports