Initial commit of code that worked years ago under Python 2.5 on various platforms.

Signed-off-by: Ryan Helinski <rlhelinski@gmail.com>