Saute onions in butter about 5 minutes.
Sprinkle with flour and cook another 5 minutes.
Add sour cream, lemon juice, salt and pepper.
Pour into a shallow casserole dish and top with the parmesan cheese.
Bake at 375 degrees for 20 minutes.
Serve warm with crackers or tortilla chips.