Using pympler to do memory debugging. After code lint, pylint rating 8/10.