Fix Py list length check in cpy_build_meta()

This is a followup of https://github.com/collectd/collectd/issues/716 to fix Py list length check in cpy_build_meta() function.