added f.close()  (it really doesn't matter, but we'll just pretend it makes it look pretty  -______-)