with open('/dev/usb/lp0', 'w') as lp:
import datetime
now = datetime.datetime.now()
#print ("Current date and time : ")
print('////////////////////////////////', file = lp)
print('////////////////////////////////', file = lp)
print('////////////////////////////////', file = lp)
print('', file = lp)
print (now.strftime("%Y-%m-%d %H:%M:%S"), file = lp)
print('', file = lp)
print('////////////////////////////////', file = lp)
from random import choice
thing = ['A BOOK']
item = ["AN OBJECT", "AN ARTIFACT", "A KNOT", "A COLLECTION", "AN ARCHIVE", "A PORTABLE DATA STORAGE",
"THE PHYSICAL SUPPORT OF TEXT", "AN INTIMATE SPACE", "AN IDEA", "A PERFROMANCE", "AN EVENT", "A PHENOMENON OF SPACE AND TIME",
"A SEQUENCE OF ROOMS", "A SEQUENCE OF MOMENTS", "AN INTERFACE", "A DEVICE", "AN ITEM", "AN EXHIBITION", "A STAGE", "A FRAMEWORK", "AN ENTITY"]
structure = ["A SYSTEM OF KNOTTED STRINGS", "LAYERS", "NODES AND LINKS", "INTERCONNECTIONS","A VARIETY OF MATERIALS",
"JUXTAPOSITIONS", "A RECOMBINANT STRUCTURE", "THE POWER OF PUBLICATION", "ANY NUMBERS OF PHYSICAL FORMS", "WORDS",
"WHITE SPACE AND BLACK SPACE"]
action = ["TO PROVIDE", "TO SHOW", "TO PUBLISH", "TO CONSERVE", "TO PRESENT", "TO EXCHANGE", "TO FIND", "TO CREATE", "TO PRODUCE", "TO EXPERIENCE", "TO OFFER",
"TO TRANSFER", "TO DELINEATE", "TO PROCESS"]
attribute = ["RANDOM", "SEQUENTIAL", "ISOLATED", "CERTAIN", "PRECISE", "NAVIGATIONAL", "CONTEXTUAL", "SPECIFIC", "PERFORMATIVE", "SITUATED", "SUBJECTIVE",
"OBJECTIVE", "USEFUL", "UNIVERSAL", "DIVERSE", "EXCITING", "COMPLEX", "ABSTRACT", "DISTINCT", "NEW"]
purpose = ['ACCESS', 'KNOWLEDGE', 'EXPERIENCE', 'EXPECTATION', 'ORIENTATION', 'THOUGHTS', 'NAVIGATION', 'DISCURSE', 'INFORMATION', 'MEANING', 'PURPOSE', 'COMMUNICATION', 'INTERACTION', 'NEGOTIATION', 'INCARNATIONS', 'TRUTH']
print('', file = lp)
print('', file = lp)
print('A BOOK', file = lp)
print('', file = lp)
print('IS ' + choice(item), file = lp)
print('', file = lp)
print(' USING ' + choice(structure), file = lp)
print('', file = lp)
print(' ' + choice(action), file = lp)
print('', file = lp)
print(' ' + choice(attribute), file = lp)
print('', file = lp)
print('' + choice(purpose), file = lp)
print('', file = lp)
print('', file = lp)
print('', file = lp)