Tweak python configuration. Fixes #12, #48