Adding the casting of integer -> int for python generated code

Fixing an issue in auto-generated python models where attribute datatypes were set to `integer` instead of `int` and causing casting issues due to `integer` not being a valid python primitive.