Always use the bundled argparse.
Add tests for completion.

Also make the completion more deterministic and 3.x-compatible.