A Python based event and agent server