Update HW6.py

Added more of the professor provided code so that the thing works smoothly (basically a recursive print_linked_list, which wouldn't even have been hard to write but I admit myself some indulgences). More of the doctests. Will run tonight.