Stefano, Gianfranco - thanks for this. Forgive my ignorance, but I don't use Debian, or Python, and have never the term "sysconfig scheme" before.
Does your patch change the default behavior of Automake? I gather not, but ... Also, it feels like there should be some documentation about this. Can you write something brief? --thanks, karl.