correcting wrong variable in api.py

username to slugified_name in api.py