General bioinformatics functions in Python