def create_csv(updated_address_list):
 import sys
 if (sys.version_info >= (3, 0, 0)):
  f = open('output.csv', 'w', newline='')
 else:
  f = open('output.csv', 'wb')
 with f:
  writer = csv.writer(f)
  writer.writerows(updated_address_list)
 print 'All done!'

def create_csv ( updated_address_list ) : import sys if ( sys . version_info >= ( 3 , 0 , 0 ) ) : f = open ( 'output.csv' , 'w' , newline = '' ) else : f = open ( 'output.csv' , 'wb' ) with f : writer = csv . writer ( f ) writer . writerows ( updated_address_list ) print 'All done!'
given the updated lists of lists from get_geolocation() .