list.py: Moved static functions to module level.
list.py: Renamed list module to lists to avoid conflict with builtin.