Replaced several things with pythonmode