python bot and special bot code correction