move prepare_lib to utils.py