Add methods for Python list and dict methods