I think your first name def get_jobs_from_file(filename): is a way better name.