Changes to make everything 3.7 compatible, compiling and running.