template memcpy[T](a, b: ptr T; n: int)
template pyalloc[T](s): ptr T
template pyallocStr(s): cstring
template pyfree(p)
template pyfreeStr(p)