Dionaea sqlite to single log line

Python script to fetch events from sqlite database and print them on a
single line.