Python implementions of AI algorithms