def parse_s3(name):
    """ Parse the file into bucket, key, and filename """

    bucket = str(name).replace("s3://","").split("/")[0]
    key = "/".join(str(name).replace("s3://","").split("/")[1:])
    filename = key.split("/")[-1]

    return bucket, key, filename