python extends for microsoft automation