check for basestring instead of try/catch on load_file