Python tools for analyzing 21cm signal data