Fixed wrong PyHandle created for some c++ entities and removed duplicate DECLARE_PYCLASS from server/client python header and moved it to shared.