Corrected verbose logging in python script