Python picture resizer script with simultaneous compilations