for heroku
fix url.py and support IE<8