do not use python with statement
Merge pull request #464 from ideawu/dev

do not use python with statement