changed import ordering for clean error processing

I thought it was a smart move to try/except the import section.
However, if it fails on imports earlier thant 'sys' the sys.exit statement fails because it's not loaded yet ... meh! learned something here ...