Add the initial version of the script

The initial version of the script is added. It passes the pylint test
but has not been fully debugged yet.