Adding python, speed refactorings (got rid of pesky node class)

Also merging all branches.