stripped down implementation of python for openwireless