Bresenham Line Drawing Algorithm In Python