Using firefox and selenium with tor anonymously

Apparently using other applications with tor is not recommended . I followed method 2 instruction three from here and simply changed my socks host port to 9150 in firefox, so that it would match my tor brower port. According to this answer, it looks like it might be fine, but it looks like it's saying that tor has it's own version of firefox?

I'm running tor with selenium using the following commands, these commands just return a random IP address that I'm routing through

profile.set_preference('network.proxy.type', 1)
profile.set_preference('network.proxy.socks', '')
profile.set_preference('network.proxy.socks_port', 9150)