'Initializes a new instance, copying commands from other if not None
Args:
other: another instance of EnvironmentModifications (optional)'

def __init__(self, other=None):

    self.env_modifications = []
    if (other is not None):
        self.extend(other)
