Playting with python and more linear clean up