fixed importer code, also made it more pythonic, need less try, except code