In order to avoid the datastore['VERBOSE'] check just use the vprint version of the print_* functions. Messages will be printed only if running in verbose mode.