I guess that your python code sends message notifications. The B4J code sends data notifications which then cause FirebaseMessagingService to show the notification.
Finally, I got the solution, the FCM python library has 2 types of messages, the "message" that doesn't raise the app service, and "pushmessage" that does, after implements pushmessages the messages are working with their icons.