@staticmethod
def from_type_string(type_string):
    """
        Gives the parser class corresponding to the input type_string.

        Args:
            type_string (str): A string indicating the desired type of parser.
                Currently only 'api' and 'shell' types are supported, but 'shell' must be implemented by the inheriting
                class.

        Raises:
            NotImplementedError: Support for the 'shell' type is not currently implemented.
            AttributeError: Raised if the input type_string is not supported.

        Returns:
            The parser class corresponding to the input type_string.

        """
    if type_string == 'api':
        import parser.api_sphero_parser as api_sphero_parser
        return api_sphero_parser.Parser
    if type_string == 'shell':
        raise NotImplementedError
    else:
        raise AttributeError
