Python port, code restructuring, bug fixes

-completed port to python
-code restructuring such that python and ruby pipeline are one, with a backup folder
-bug fixes
-integrating n grams update