trying to get the solving to work. no luck so far. updated to python 3