adapted to python from boidroids.js in the max examples