simulated network protocols using python and raspberry pi GPIO