removing deprecated functions so that this will function with Django 1.5