refrain from using 'with' as it's not supported on centos5.3's python