1001169: fix pythonic empty string identity problems