If the file ~/.au-skema doesn't exist, this will raise an IOError exception, furthermore it should not be surrounded by int() as studentnumbers can contain letters, such as the ones given to former students of BSS or the engineering department. E.g. KO87148 ;)