WIP most tests are now passing and there are no more errors. (python 2)