There's a new upstream release (0.20), which supports Python 3 and includes several of the patches Debian has against 0.19. http://freedesktop.org/wiki/Software/pyxdg it's already been packaged in Ubuntu, so it should be simple to copy that and adjust it.