created helpers.py

Helper functions for data munging