def get_sequences_from_fasta(fasta):
    """
    Simple function to obtain a list of sequences from a fasta file.
    Returns list of sequences and a list of names
    :param fasta:
    :return:
    """
    sequences = []
    names = []
    for line in open(fasta, 'r'):
        line = line.strip()
        if not line: continue
        if line.startswith('>'): names.append(line.strip('>'))
        else:
            sequences.append(line)

    return sequences, names