remove inList.close() from try block. with statement handles in __exit__
method