fixed a bug with element name generation
added support for the rndhex attribute as in Perl's Directory::Queue
fixed pylint warning