title: Psycopg2 callproc and sql parameters
body: <p>I got some SQL function</p>
  
  <pre><code>CREATE OR REPLACE FUNCTION tools.update_company(IN company_id integer, OUT value integer)
       RETURNS integer AS
   $BODY$
  
  BEGIN 
  select * into value from function_making_int(company_id)
  END;$BODY$
  </code></pre>
  
  <p>and from Psycopg2 (its inside Django if that matters) I do</p>
  
  <pre><code>c = connection.cursor()
  c.callproc('tools.update_company', [1, ])
  </code></pre>
  
  <p>but function returns exactly the same input sequence as I gave, ignoring results and OUT parameter. Change to IN OUT and passing some foo value changes nothing. When called within database SQL function works as expected</p>