merge frecency.py with lib.py