setExternal2 works well on python 2.7 and above
Merge pull request #181 from plinioMoreno/master

setExternal2 works well on python 2.7 and above