Stringbuilder Reverse Function String Python