Mld fixes

A few quick fixes that will help OSX users (among others). I'm going to push these into gr-modtool too.

The python fixes were worked out by Balint; I'm just pushing them.