add API get_printer
add get_printer to __init__.py
add API share_printer
fixed bugs in hook