Add csv support to import_logs.py