Males will lock with males out of dominance. It's not sexual behavior, it's dominance behavior. You've got everyone on this thread giving you the obvious answer of separate them. They are competing for the same territory. That nudging is his mild way of trying to get the smaller snake to go away. They can't talk and they don't have much other way then using their body to push the other or bite to show thy aren't happy about the other one being there.