def get_period(self, period):
        return getattr(self, '_get_{0}_period'.format(period))()
Dynamically returns beginning and an end depending on the given period.
dataset/ETHPy150Open maxtepkeev/architect/architect/databases/utilities.py/DateTime.get_period