def make_modular(self, rebuild=False):
if rebuild is True:<EOL><INDENT>supercell_333 = create_supercell(self.system)<EOL><DEDENT>else:<EOL><INDENT>supercell_333 = None<EOL><DEDENT>dis = discrete_molecules(self.system, rebuild=supercell_333)<EOL>self.no_of_discrete_molecules = len(dis)<EOL>self.molecules = {}<EOL>for i in range(len(dis)):<EOL><INDENT>self.molecules[i] = Molecule(dis[i], self.system_id, i)<EOL><DEDENT>
Find and return all :class:`Molecule` s in :class:`MolecularSystem`.

This function populates :attr:`MolecularSystem.molecules` with
:class:`Molecule` s.

Parameters
----------
rebuild : :class:`bool`
    If True, run first the :func:`rebuild_system()`. (default=False)

Returns
-------
None : :class:`NoneType`