python initial fixes