Python 2.6 compatibility fix for mass2d_triangle demo

gzip.open is a context manager only as of Python 2.7.