Add automemory option.
Merge branch 'master' of https://github.com/gmatteo/pymatgen