I thought it was a King Snake at first but it's definitely a Black Rat Snake. They are well known to climb trees and barn rafters. This is a small one, about 4' long. They get a whole lot bigger!