Added python config and small bug fix.