adjust doctest to not fail on py2.6