bringing new manualcoding into python 2.7