I'd choose Python out of those 2, based on what I see in industry demand nowadays.
PHP I'm seeing much less demand for now than before, and Python is gaining in popularity given its usage in current trendy tech like machine learning.
Though it's fair to say Laravel for PHP is a strong competitor and it would be my reason for choosing PHP if I did. I don't think Codeigniter is nearly as popular a framework.
(Not to suggest popularity is everything by the way, just that it helps to guarantee that the language/framework will continue to thrive and receive updates and community support; as well as better prospects for industry jobs)