fix for older versions of passlib in htpasswd auth module