Return a query that uses raw string-replacement for parameters.

        The parameters will still be escaped before replaced-into the query (by 
        sqlalchemy).

def __build_raw_query(self, routine, parameters):
        """Return a query that uses raw string-replacement for parameters.

        The parameters will still be escaped before replaced-into the query (by 
        sqlalchemy).
        """

        parameter_names = []
        replacements = {}

        for i, value in enumerate(parameters):
            name = 'arg' + str(i)

            parameter_names.append(name)
            replacements[name] = value

        parameter_phrase = ', '.join([('%(' + p + ')s') for p in parameter_names])

        query = "CALL " + routine + "(" + parameter_phrase + ")"
        return (query, replacements)