added delete to api.py and fixed fp.delete to utf8 encode track_ids