SimpleHTTPServer expects str objects internally so base_url should be stored as a str object not a unicode object.