Here is an interesting project to make raycasting with pyhton. Raycasting is a tecnique to build pseudo 3-d world, used in Castle of Wolfenstein 3d and in Doom.
Read the news on reddit.
A guide to raytracing
Page 1 – The walls
Page 2 – The floor and the ceiling
Page 3 – The sprites