It sounds like the only place the two parts will interact is the database: the RoR parts collect data from the user, the python parts collect data from Twitter and elsewhere.
As long as your database is supported by both languages, there's no a priori reason why this wouldn't work.
Even if you end up needing the two parts to interact more directly, there are plenty of ways of providing an API in one part of the app that the other parts of the app can use regardless of what language they're written in - for instance, it should be easy to have the RoR parts provide a nice RESTful API, and have the python parts interact through that.
If you're going to have different parts of the app developed by different teams, they're going to need a strong interface contract in order to make their parts work together anyway; having that contract be in the form of a RESTful API just makes the parts even more modular and gives you more freedom in the future.