ensure py3k compatibility