Get the guns rotation and apply it to the bullets rotation.
Something like
bullet.rotation = gun.rotation
Another thing, the bullet should not be a child of the gun. It should be a child of the level itself so if you instanciate it at the gun scene make sure you declare it as so.
get_parent().add_child(bullet)