added Pattern.gaps() method in Python APi