def _increment_name(name):
    """Returns a name similar to the inputted name

        If the inputted name ends with a hyphen and then a number,
        then the outputted name has that number incremented.
        Otherwise, the outputted name has a hyphen and the number '1' appended to it.
    """
    index = name.rfind('-')
    if index == -1:
        # The is not already followed by a number, so just append -1
        return name + '-1'
    else:
        # The number is already followed by a number, so increment the number
        value = int(name[index+1:])
        return name[:index+1] + str(value+1)