Python String Mid Function Example C