memstat function prints used and total memory.
Refactor bash functions by picking out python scripts.
Merge branch 'master' of origin