Python support, various tweaks I forgot about