removed unwated file
db(query)(other if cond else None).select()
improved ipv6 address checked, thanks Jonathan
support for different representations of IPv4 in IPv6, thanks Jonathan