Fix python tab completion for OSX 10.7 & 10.8