Tanir's quest is a pygame-based dungeoneering game with pluggable graphics and so on. It features a codebase of 8 rooms which can be easily extended for making a Zelda or Ultima lookalike game.
Information regarding Project Releases and Project Resources. Note that the information here is a quote from Freecode.com page, and the downloads themselves may not be hosted on OSDN.