molecule construction in python