updating pylol api wrapper with sub-functions