Restore Python2.7 compatibility: tested under 2.7 and 3.3.