It has completely nothing to do with Python. The error was generated when instancing DirectObject. The DirectObject import statement in this tutorial was intended to be ran on older version of Panda. For the later version, you should change it,
from :

Theres spose to be a Readme.txt file it says in the MS DOS batch file but when i downloaded it, there wasnt one to be found? Idk but good example all together anyways I can try and figure out how you did everything through the boxbounce.py but if there was more in the Readme.txt it may be easyer? Idk message me back byes

Dude, this looks so ghetto. ^^ Needs another update for 1.5. I’m going to send out the request. Basically, the update will require the coder to change …/floor to …/floor.x and …/box to …/box.x . Otherwise, you get an error that floor.egg and box.egg cannot be found.