I have a function that applies different data preprocessing based on a string argument and am a confused on how that is usually done in python because of the lack of switch