import re


def valid_identifier_name(name):
    """Return a valid Python identifier name from input string.

    For now just strips commas and spaces
    The full regex to satisfy is
        good_identifier_name = "^[a-zA-Z_][a-zA-Z0-9_]*$"
    But that doesn't define the prescription for creating a good one.

    >>> valid_identifier_name('coadd_4849_1,1')
    'coadd_4849_11'
    >>> valid_identifier_name('coadd_4849_1,1_2,3')
    'coadd_4849_11_23'
    >>> valid_identifier_name('coadd_48^49_1,1_2 3;')
    'coadd_4849_11_23'
    >>> valid_identifier_name('2234coadd_48^49_1,1_2 3;')
    'coadd_4849_11_23'
    >>> valid_identifier_name('2234,48^49 3;')
    ''
    """
    remove_characters_regex = '[^a-zA-Z0-9_]'
    name = re.sub(remove_characters_regex, '', name)
    # Remove beginning characters that are numbers
    name = re.sub('^[0-9]*', '', name)
    return name