On debian and ubuntu, python3.3 has two include locations instead of one:
-I/usr/include/<multiarch>/python3.3 -I/usr/include/python3.3
are needed.
Here is patch against postgresql 9.1 to fix fail to build from source
against such pythons.
--
Regards,
Dmitrijs.