Get String Index Python Method Parameters