Update api.py

Make aliases default to an empty string so we can still attempt a split on it in the handler.