Normally one gear can run only one programing language. Here is Guide on Enabling Python in PHP Gear on OpenShift PaaS Where 2 Languages Can Be Used.