Python script to help on loan