remove code duplication while checking for ignore_weekend
use os.sep and os.path.join() for better handling of path names
move unnecessary_keys to be popped to a list
create a dictionary from input_delv for OI values to improve speed tremendously