sgs_shares directly returns numpy array
use C arrays instead of Pylist lookups