The difference between Python and JavaScript languages is very minimal as you can do almost everything with both Python and JavaScript languages as they share common things like lexically scoped, object-oriented, interpreted, functional and imperative programming. If some feature is missing in any language we have plenty of existing libraries and other extensions with which we can achieve whatever needed.
Still, according to me Python as it has a good market in the IT industry and easy to learn also.