Some python code on hadoop and artificial intelligence