Merge pull request #384 from toddrjen/misc2tools

Split misc.py into separate files in tools subdirectory (update of pull request #382)