support py3k where easily possible