What a Turing test is, is widespread known among computer experts. It's some kind of game, which can be attended by a human or a computer program. If a computer program is able to pass the game, the program is equal to a human level Artificial Intelligence. Instead of asking how to create such program the more interesting problem is how to create the Turing test itself.
It's surprising to know, that Google has many websites which are explaining what the Turing test is, but not a single example is available of how to program such a test in Python. Which kind of software is needed which can evaluate if the user is a human or a machine?