Python investing tools