python3 compatibility
fixed bug in dW_factors and m_ops kw arguments