Closes #636 : qr  returns multiple outputs in python now.
New fix for #648 as previous fix casued a regression in #622.