some fixes for coupling in python. still doesn't work at run-time
(crashes on integrate_for_time)