Python Class With Statement In Excel