Fix bugs in python module.

I just noticed that shapes were not correctly set, should be alright now.
setup.py works on Windows (Mingw) and Linux .
Btw i don't handle unknown_parameter, should i ?