Simple Protocol Sheduler in Python