Moved polytomysolver cpp implementation to a python one