A tiny bit further on python 3 implementation. Going to start from scratch.