fixed typos
Merge pull request #379 from samuelstjean/typos

fixed typos in shm.py