parse format strings for PyBuffer