Added fake agent for debugging purposes. Fixed issue with Python's stdout buffering