Min-Max Ant System implementation for reverse pendulum problem in Python