Fix automagic python support