Rework externas and python interpreter