Powershell User Input Validation In Python