Fixed py header syncing bug