small fix to address bug, migrating to cleaner interface using inspect
Merge pull request #664 from bcipolli/import_bug

small fix to address bug, migrating to cleaner interface using inspect.  Tested on Linux