Fixed ResourceWarning in python 3.2+
Fixed ResourceWarning in python 3.2+

Brobin/rtv,bigplus/rtv,michael-lazar/rtv,michael-lazar/rtv,shaggytwodope/rtv,shaggytwodope/rtv,TheoPib/rtv,arnoutpierre/rtv,yskmt/rtv,TheoPib/rtv,5225225/rtv,michael-lazar/rtv,yskmt/rtv,obosob/rtv,5225225/rtv