Higher SPT's and a generalization of anomaly in-flow