Fix building Python integers from size_t values

Use the `n` format specifier instead of `l` to build Python integer or long integer objects from size_t values.
Merge pull request #2108 from cgohlke/patch-2

Fix building Python integers from size_t values