Class Format Python String Split Function In Python