Python Find Last Element In An Array