A simple python script to preprocess libraries of compounds