Fixed issue of accessing private function by using list comprehension (?).
Declaration of variables was made more python-like