[refactor] Move signal handling from cpp/core/pyos -> mycpp/iolib