You seem to have patched python so that sys.platform is 'linux-i386'
instead of 'linux2'.
Although I can understand why this patch was applied, it breaks too many
Please remove this patch and use platform.py instead if you need detailed
on the platform.
This is no patch. You pass MACHDEP=linux-$RPM_ARCH into the configure program.
The sys.platform is for adding on to paths to find the platform specific
directories. Its value should not be depended on.