``file_handle`` doesn't seem to get used, or more importantly, closed. Perhaps use a ``with`` statement.