Python String Extract Method To New Interface