[core] Migrate from optparse to argparse
[core] Migrate from optparse to argparse

optparse is deprecated since Python 2.7. This commit migrates the code to
the newer module, argparse, which also simplifies our code a bit.

Fixes #445

Uname-a/knife_scraper,Uname-a/knife_scraper,Uname-a/knife_scraper