Make argparse convert port and apiPort to int