Fix variable generation
Fix import statements and use parent attribute