Support python pre-2.7.