Run python through sh

This solves potential problems of dynamic libraries.