My experience: I had a pet constrictor in college and I've run into snakes, including the poisonous kind, while hiking. I've even had to grab an agitated snake(not poisonous). I don't recommend the last part.
Catching a snake is very hard. They can get out of most wire traps and they are only really interested in live food. You need a trap that can contain a live mouse, that the snake can get into, but can't get out of. You can see the difficulty here.
Plugging holes while it is out sunbathing is a good idea. Another way to speed this up, make it colder in your basement during the day. Snakes can't regulate their temperature without external sources. A small AC unit might work. You want the temperature under 55 if you can, but even 60 is better than 70+. This will encourage the snake to leave, discourage coming back, and if they stay it will make them much more docile.
Related: That is how some religious preachers will handle dangerous snakes without getting bit. It's a con. God isn't protecting them, they keep the snake in a really cold box so the snake is paralyzed.