'Returns a dictionary.
:nb_elements: number of elements for dictionary
:variable_nb_elements: is use variable number of elements for dictionary
:value_types: type of dictionary values'

def pydict(self, nb_elements=10, variable_nb_elements=True, *value_types):

    if variable_nb_elements:
        nb_elements = self.randomize_nb_elements(nb_elements)
    return dict(zip(Lorem.words(nb_elements), self._pyiterable(nb_elements, False, *value_types)))
