group and order imports. Delete unused 'time' import.