Fix handle leak (using with statement)

$ python3.4 -W all test_Phylo_CDAO.py
...
/home_local/buildslave/lib/python3.4/unittest/case.py:602: ResourceWarning: unclosed file <_io.BufferedRandom name='/tmp/tmpxd4n0phn'>
...