replace the shell script with a python method

remove the shell script, update readme