Network Stratification for Python