Modify ConvertToExternalData.py to use argument parser

Change-Id: I83c6ee7415f65f3d030a89a1a6e60429f43af05a