func (l List) Len() int {
	return int(C.PyList_Size(l.PyObject))
}
Len returns the size of the Python list.
package py
import "C"
import (
	"github.com/pkg/errors"
)
type List struct {
	Object
}
func NewList(size int) (l List, err error) {
	l.PyObject = C.PyList_New(C.Py_ssize_t(size))
	if l.PyObject == nil {
		err = errors.Wrapf(GetError(), "error creating Python list of size %d", size)
	}
	return
}
func (l List) GetItem(index int) (Object, error) {
	var o Object
	o.PyObject = C.PyList_GetItem(l.PyObject, C.Py_ssize_t(index))
	if o.PyObject == nil {
		return o, errors.Wrapf(GetError(), "error getting list item %d", index)
	}
	o.IncRef()
	return o, nil
}