This Python script is a website.You can run this and visit it on Browser.Echo Google top url(like https://play.google.com/store/apps/collection/topselling_paid) to get package name or echo package name to get app info.
1.0
python google.py runserver --host 0.0.0.0
Now,you can visit x.x.x.x:5000/get_package_name to get package name or visit x.x.x.x:5000/app_lookup to get app info.