Go Port of byzanz_window.py