Change the iframe size in python oop