fixes problem with TypeError in Base.read_comps() in python3
(rhbz #1070710)