def splitLast(string, separator, emptyLeft = None):
    """ Splits the string into two parts at the last location of the separator."""
    offset = string.rfind(separator)
    if offset < 0:
        return [emptyLeft, string]
    return string[:offset], string[offset + 1:]