how do i create a csv file from database in python?,"writer.writerow(['mary', '3 main st', '704', 'yada'])"