Ported code to Python 3.4.1

SCONS builds successfully, full support not verified.