Php Functions For Database Connectivity In Python