Array Up To Index Python Function Call