Ruby auth example, improvements to python auth example