py: Put number parsing code together in parsenum.c.