modify python solution for 'get number appears odd times'