Python painting application