Fixed the Recursion Bug in ImportErrorObject

Works on the command line and in the tests!

The branch "recursion_bug" can be deleted after merging this pull request in.