Tidy Python Ethernet learning code; add comments