implemented python version of generic list, much simpler......