reorganize the python version into a package