Import a pipeline from json.

def import_pipeline(conf, args):
    """Import a pipeline from json."""
    with open(args.pipeline_json) as pipeline_json:
        dst = conf.config['instances'][args.dst_instance]
        dst_url = api.build_pipeline_url(build_instance_url(dst))
        dst_auth = tuple([conf.creds['instances'][args.dst_instance]['user'],
                          conf.creds['instances'][args.dst_instance]['pass']])
        parsed_json = json.load(pipeline_json)
        verify_ssl = dst.get('verify_ssl', True)
        return api.import_pipeline(dst_url, args.pipeline_id, dst_auth, parsed_json, verify_ssl, overwrite=args.overwrite)