Ray Casting Algorithm Python Example