implement equals and hashCode for Pylon

hopefully this fixes search failures in isConnected