The snake appeared to be headed onto the busy street when it was found, an animal control officer said.
The snake may have been an escaped pet or one that was intentionally released.
A frightened animal trapped in a tight engine compartment can pose risks.
A search was launched for the 4.5ft ball python and a "slightly grumpy" 7ft boa constrictor.