Expected String Array Python Size Function In R