Fix relative imports and error handling

This deals with relative imports in visit_ImportFrom.  Also adds
try/except around ast.parse() call to catch any files with non-valid
source or syntax errors.