Command line tools and python library to infer ploidy, correct for sex chromosome complement, and work with NGS data