Finally half-decent working python mode