old_contents: import sys
  import csv
  import os.path, time
  import urllib2
  '''
  Dowload San Francisco health inspector data.
  '''
  #    Copyright (C) 2013 Timothy James Austen, Eileen Qiuhua Lin,
  #                       Richard Esplin <richard-oss@esplins.org>
  #
  #    This program is free software: you can redistribute it and/or modify
  #    it under the terms of the GNU Affero General Public License as published by
  #    the Free Software Foundation, either version 3 of the License, or
  #    (at your option) any later version.
  #
  #    This program is distributed in the hope that it will be useful,
  #    but WITHOUT ANY WARRANTY; without even the implied warranty of
  #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  #    GNU Affero General Public License for more details.
  #
  #    You should have received a copy of the GNU Affero General Public License
  #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
  
  #TODO Detect most recent previous downloaded file
  #TODO Fix file layout: if __name__ == "__main__":
  
  last_zip_file = "" # Insert path here
  
  ## check whether we need to update the file
  time_ori=os.path.getmtime(last_zip_file)
  
  sf_food=urlib2.request.urlopen("https://204.68.210.15/food/SFFoodProgram_Complete_Data.zip")
  time_now = sf_food.info().getdate('last-modified')
  
  if time_now > time_ori
     sf_data=open("SFFoodProgram_Complete_Data.zip","w")
     sf_data.write(sf_food.read())
     sf_data.close()
  
  
  #vim tabstop=8 expandtab shiftwidth=4 softtabstop=4
  
new_contents: '''
  Dowload San Francisco health inspector data.
  '''
  #    Copyright (C) 2013 Timothy James Austen, Eileen Qiuhua Lin,
  #                       Richard Esplin <richard-oss@esplins.org>
  #
  #    This program is free software: you can redistribute it and/or modify
  #    it under the terms of the GNU Affero General Public License as published by
  #    the Free Software Foundation, either version 3 of the License, or
  #    (at your option) any later version.
  #
  #    This program is distributed in the hope that it will be useful,
  #    but WITHOUT ANY WARRANTY; without even the implied warranty of
  #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  #    GNU Affero General Public License for more details.
  #
  #    You should have received a copy of the GNU Affero General Public License
  #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
  import sys
  import csv
  import os.path, time
  import urllib2
  
  #TODO Detect most recent previous downloaded file
  #TODO Fix file layout: if __name__ == "__main__":
  
  last_zip_file = "" # Insert path here
  
  ## check whether we need to update the file
  time_ori=os.path.getmtime(last_zip_file)
  
  sf_food=urlib2.request.urlopen("https://204.68.210.15/food/SFFoodProgram_Complete_Data.zip")
  time_now = sf_food.info().getdate('last-modified')
  
  if time_now > time_ori
     sf_data=open("SFFoodProgram_Complete_Data.zip","w")
     sf_data.write(sf_food.read())
     sf_data.close()
  
  
  #vim tabstop=8 expandtab shiftwidth=4 softtabstop=4
  
subject: Move docstring to correct location