Reformatted circuits.py and did some small code cleanup