Python Extract Part Of String Python Functions