Use "with open" instead of "open … close"
completed by: nomes892
mentors: Matthew Rocklin, Vladimir Perić, Stefan Krastanov, Aaron Meurer
Please see http://code.google.com/p/sympy/issues/detail?id=2534 for full information on this task.
Please read https://github.com/sympy/sympy/wiki/gci-2011-landing before completing any tasks for SymPy.