Use relative imports instead of try, excepts.

Also removed some extraneous whitespace.