Modified original module to partially use API v3 and added cli.py script