Add python3 support
Add server key check