fix import name when using subimports
fix #61, replace newlines with \n in strings