def _choose_port(self):
<EOL>return <NUM_LIT> + unpack('<STR_LIT>',<EOL>sha((self.name + self.site_name)<EOL>.decode('<STR_LIT:ascii>')).digest()[:<NUM_LIT:8>])[<NUM_LIT:0>] % <NUM_LIT:1000><EOL>
Return a port number from 5000-5999 based on the environment name
to be used as a default when the user hasn't selected one.