How to fix subprocess.TimeoutExpired: Command 'cmd' timed out after X seconds in Python | DevErrors