Merge branch 'master', remote-tracking branch 'upstream/master'
new version of python script, version with memoizations is added
Merge pull request #5 from dudarev/master

New version of Python script.