Update resize.py

v0.1 in python