added option to return string or datetime object
added option to return string or datetime object

+ renamed previousWeekday to previous_weekday

ranaroussi/qtpylib,ranaroussi/qtpylib,ranaroussi/qtpylib