code: def printcolour(text, sameline=False, colour=get_colour("ENDC")):
      
      if sameline:
          sep = ''
      else:
          sep = '\n'
      sys.stdout.write(get_colour(colour) + text + bcolours["ENDC"] + sep)
docs: Print color text using escape codes