Don't:
fobj = open('myfile.txt') # tons of code fobj.close()
"tons of code" will inevitably fail, at which point, the file descriptor is leaked, and left to be cleaned up by the GC. It is poor form to say "Python is refcounted": Python the language is not reference counted, it is garbage collected.