move
move some functions to common
raise r min
move from ratios.py
ignore pyc
move functions