python: fix pyport.h compilation errors.

See http://bugs.python.org/issue10910
python: update 2.7.8 bottle.

Closes #31691.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>