Setting FRAMEBUFFER and device within python script