python reverse list using range