python split code