Write me a python script to record items clicked on the DOM and keep a record in a python list.