[network.py] - fix messageInBuffer function for message types not in usedTypes list
[prompt.py] change to event based network communiction