Support parsing and checking packages that import other packages that only exist in source form

Closes gh-4
slightly adjust error handling
Merge pull request #5 from dominikh/master

Support parsing and checking packages that import other packages that only exist in source form