Python returns MagicMock object instead of return_value