Fix python and perl extensions.
Merge pull request #108 from mrshankly/master

Fix python and perl extensions