Get First Object In Array Python Size Function In R