PEP8ify
Remove debug output
Use Xlib to close connection instead of XCB