added in errof for python version != 2.x