Index: src/python/bin/gnuboat-data-generator
===================================================================
--- src/python/bin/gnuboat-data-generator	(revision e44e1f1d1f776cc63ee03dca5c3caa220b40c818)
+++ src/python/bin/gnuboat-data-generator	(revision e56114365354bdb929dc068700ae658e01b9b38a)
@@ -46,5 +46,5 @@
     global logperiod
 
-    parser = argparse.ArgumentParser(description="Generates test data for gnuboat webservice and fills the rrd database")
+    parser = argparse.ArgumentParser(description='Generates test data for gnuboat webservice and fills the rrd database')
     parser.add_argument('-f', '--file', dest='rrd_database', metavar='rrd_database', type=str,
                         help='File path of the rrd database to fill', default="/var/lib/gnuboat/gnuboat.rrd")
@@ -78,6 +78,5 @@
 
     if not os.path.exists(os.path.dirname(rrdfile)):
-        print "rrd database directory not found %s" % os.path.dirname(rrdfile)
-        print ""
+        print('rrd database directory not found {}'.format(os.path.dirname(rrdfile)))
         parser.print_help()
         sys.exit(2)
@@ -87,11 +86,11 @@
         
     if os.path.isfile(rrdfile):
-        print "Removing old database %s" % rrdfile
+        print('Removing old database {}'.format(rrdfile))
         os.remove(rrdfile)
 
-    print "Creating %s" % rrdfile
+    print('Creating {}'.format(rrdfile))
     daemon.rrd_create_database(rrdfile, logperiod, str(start_time))
     
-    print "Filling database inside [%s, %s] --> [%s,%s]..." % (latitude_min, longitude_min, latitude_max, longitude_max)
+    print('Filling database inside [{}, {}] --> [{}, {}]...'.format(latitude_min, longitude_min, latitude_max, longitude_max))
     for current_time in xrange(timestamp - duration, timestamp, logperiod):
         latitude = random.uniform(latitude_min, latitude_max)
@@ -104,5 +103,5 @@
         gpsFix = 3
         # update rrd database for the webservice
-        daemon.rrd_update(rrdfile, "%s:%s:%s:%s:%s:%s:%s:%s:%s" % (
+        daemon.rrd_update(rrdfile, '{:s}:{:s}:{:s}:{:s}:{:s}:{:s}:{:s}:{:s}:{:s}'.format(
                        current_time, latitude, longitude, speedThroughWater, speedOverGround, courseOverGround, waterDepth, waterTemperature, gpsFix))
 
