Use comboclean to make it easy to use email and passwords, from big combolists, in your script.
$ git clone https://github.com/geraldoahnert/comboclean
$ cd comboclean/
$ chmod +x comboclean
# Install global command
$ sudo cp comboclean /usr/bin/comboclean
# Local
$ ./comboclean --help
# Global
$ comboclean --help
A combolist example:
$ cat combolist.txt
username:password something | something | something
username:password something | something | something
username:password something | something | something
username:password something | something | something
username:password something | something | something
username:password something | something | something
Using comboclean
$ comboclean -f combolist.txt -o combolist2.txt
$ cat combolist2.txt
username:password
username:password
username:password
username:password
username:password
username:password