fixed another casting problem with python... baka...