Completely Pythonic way to get page width and height. Width works well. Height is not always accuarte. Better I use height from JS