Switched to standard library modules

The functionality is unchanged, but now the script will run on systems
without lxml installed (such as the Beowulf cluster).
Removed duplicate imports

Importing a module multiple times does not create copies of the module.
It just assigns the same module to multiple names.

Additionally, the `random` module seeds itself with the system time on
import, so calling `seed` again without arguments is unnecessary.