python: Make build number format consistent with C.