py_len function

Length of Python object