If you use money that was taxed to pay a lawyer to fight a parking ticket you can't deduct his fee. Why should you be able to deduce his fee for any other reason?
General rule: expenses incurred for the production of income are deductible, fines and penalties are not.