now tolerant with .pyw files