Python Get Last Element Of Path