Update common.py

Check bug in getContinuedFraction