def removeLocations(lmA, prefix):
    """Removes locations with a given prefix
        
    Keyword arguments:
    lmA -- Location map to delete location from
    prefix -- Key or part of key in location map dictionary
        
    Creates a copy of provided location map lmA
    Copy contains all key-value pairs from lmA in which the key does not start with the given prefix
    """
    lmCopy = dict()
    for key, value in lmA.items():
        keyStartsWithPrefix = key.rfind(prefix, 0)
        if(not keyStartsWithPrefix == 0):
            lmCopy[key] = value
    return lmCopy