PythonEditor: Remove dead code

Change-Id: I78da9f381ba8081a681f46c045b436e143416206
Reviewed-by: hjk <hjk121@nokiamail.com>