Powershell With Statement In Python 3