adding first version of qinvite.py