some helper python functions for creating Flot plots