Fixed all assignments being added to the module in the limited API (GH-3501)
Fixed all assignments being added to the module in the limited API (GH-3501)

Mainly helps for adding attributes to classes, but undoubtedly fixes other things too.
cython/cython,da-woods/cython,scoder/cython,scoder/cython,cython/cython,da-woods/cython,cython/cython,cython/cython,da-woods/cython,da-woods/cython,scoder/cython,scoder/cython