The code from Penton's "MUD Game Programming", done in Python