[python] some bb clean ups'