python < 2.6 does not have the 'with' statement