To add to the discussion, if you have prior programming experience and you are familiar with the basic concepts you need to work with either of those frameworks, mainly OOP and MVC, you will be able to learn the language as you go. That said, there are dozens of good frameworks in both Python and Ruby, some less popular, some better suited for some types of projects. But diving into the language with the most popular framework will be much easier and motivating.
Being a python developer I'm obviously biased towards Django. So I'll name the reasons why I think it's better than Rails:
1. Python has a larger community and better libraries.
2. The zen of python says "there should be one and preferably only one obvious way to do it", Ruby has the totally opposite philosophy inherited from Perl. But I guess some people see it as a positive side.
3. Deployment options for ruby/rails applications are catastrophic. I've never come across one method that doesn't leak memory.
4. Django's approach to MVC is far more flexible and natural than the traditional approach in rails, although that may not be obvious at first if you come from another similar MVC framework.
Anyway, the wise choice would be to try both and see what pleases you best.