Fixed the Recursion Bug in ImportErrorObject

Works on the command line and in the tests!
Merge pull request #518 from ioam/recursion_bug

Fixed the Recursion Bug in ImportErrorObject