def get_weights(self):
        # support for legacy behavior
        weights = []
        for layer in self.flattened_layers:
            weights += layer.get_weights()
        return weights
exit with grace, prevents a messed up terminal
dataset/ETHPy150Open fchollet/keras/keras/models.py/Sequential.get_weights--crossover with--dataset/ETHPy150Open shaggytwodope/clockr/clockr/clockr.py/gracefull_exit