Updates to networkstatistics.py

-Bug fixes & improvements for enrichment_testing()