self_connection.py: fix string allocation