Text this: The cohomology of non−locality and contextuality