Fixed pyflake warnings regarding unused local variables