add macro for py<2.6