Geany autocomplete Python constraints
I don't think Geany is capable of doing this. But PyCharm is a lot better IDE for Python. It knows everything about your code, and also has an intelligent code completion, on-the-fly error checking and quick-fixes, easy project navigation, and much more.
There is also a free version ready to download which contains more than enough functionality a common programmer may need.