Support both python version urlparse library.
Explicitly check for default sub-function.

Python2's argparse, when setup to use sub-parsers, will complain when no
arguments are given. In Python3, argparse will not complain when given no
arguments and just return an empty Namespace.
Merge pull request #1 from mlb-/python2_backwards_compatability

Python2 backwards compatability