Swap Case Function In Python With Parameters