scripter2: Explicitly include Python.h in all files.

This silences warnings that show up when Python.h is not included first.
There was a workaround in one place, but it did not extend to all uses,
and it didn't work in all cases.
scripter2: Fix type conversion warnings.