-snip-
But everytime I get to add the password it says : segmentation fault.
How can i make it work?
From which version of pywallet was it?
Because in my tests, I haven't encountered a 'segmentation fault' error by using the master branch of:
https://github.com/jackjack-jj/pywallet/tree/masterTested in Python v2.7.17.
Do not download from the release tag, it's the old version from 2011.