cleanup tests , change PyBuffer field types to C typealiases