Dont try setting pystate to a null pointer