fixes problem with TypeError in Base.read_comps() in python3 (RhBug:1070710)