The SSD1306 code in the py-gaugette library has been modified at andig/AdaPi with several extensions including I²C support, and the addition of geometric drawing functions from Adafruit’s GFX Library. If you need to drive the I²C version of this display from a RPi, this is the place to start.