Adding utility functions used by the migration script.
Merge pull request #30 from esnet/migrate_utility_funcs

Adding utility functions used by the migration script.