Resize Function In Python Example