Python list wrapping and tests.