Problems using python with Editor in UE4

Finally a working answer to my need. Thx!