Polytopes, Scattering Amplitudes, And Cohomology