Fixed pyrise auth by rewriting lib