move import into function to avoid pip to complain on install