I'd suggest you take a look at blender. It has a pretty easy to use game engine with actuators, sensors and controllers, with a Python scripts api. It'll take the time out of going 3-d with pygame, and you can build the custom legos within it as well.