restore python support

broken by an incomplete merge of feature-langs

fixes #1141
@s-u, @sisukapalli, please check if i missed anything this time
it is running okay on my OSX, but i haven't tested further