Python: Interactions fix