Add code completion mode to python editor (not finished yet)