ENH: Added api/analysis.py

MNT: Import find_last from dataapi/commands