explicitly re-importing the module seems to fix the problem. kind of ugly, but not so bad in my opinion.