Make sure initial_code is tuple